<include file="Public:_header_user" />
<link href="__ROOT__/font/font-awesome-4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>


<div align="center">
    <div class="cartcontent">
        <include file="Public:uc_left" />
		<div class="fl print_area">
            <div class="uc_orderdt_tittle">
			    <div class="fl ml10">
				   <span class="fwb">订单编号:&nbsp;&nbsp;&nbsp;</span>{$data.od_no}
				</div>
			    <div class="fl ml30">
				   <span class="fwb">&nbsp;&nbsp;&nbsp;订单状态:&nbsp;&nbsp;&nbsp;</span>
				   <if condition="$data[0]['od_status'] eq 0"><span class="colorred2">未付款</span>
				   <elseif condition="$data[0]['od_status'] eq 1"/>待收货
				   <elseif condition="$data[0]['od_status'] eq 2"/>待自提
				   <elseif condition="$data[0]['od_status'] eq 3"/>待评价
				   <elseif condition="$data[0]['od_status'] eq 4"/>已完成
				   </if>
				</div>
			    <div class="fl ml30">
				   <span class="fwb">&nbsp;&nbsp;&nbsp;下单时间:&nbsp;&nbsp;&nbsp;</span>{:date("Y-m-d H:i:s",$data['od_createtime'])}
				</div>				
				<div class="fr abtn4 print_button" >打印订单</div>
			</div>
			<div class="uc_orderdt_content">
			    <div class="uc_orderdt_content_tittle fwb">订单信息</div>
				<div class="uc_orderdt_cc">
				    <div class="uc_orderdt_cct">
					    <span class="fwb">收货人信息</span>
						<br />收&nbsp;&nbsp;货&nbsp;&nbsp;人：{$data.od_address.receiver}
						<br />地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址：{$data.od_address.mobile}
						<br />电子邮件：{$data.od_address.email}
					</div>
				    <div class="uc_orderdt_cct">
					    <span class="fwb">支付及配送方式</span>
						<br />支付方式：{:getPayName($data['payway_id'])}
						<br />配送方式：{:getSendName($data['sendway_id'])}
						<br />运&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;费：0<sapn class="money">￥</span>
						
					</div>
				    <div class="uc_orderdt_cct">
					   <div> <span class="fwb">商品清单</span></div>
					   <table class="uc_orderdt_cct_wrap">
					       <tr class="uc_orderdt_cct_tittle" >
						      <td width="120px">商品编号</td>
							  <td width="200px">商品图片</td>
							  <td width="255px">商品名称</td>
							  <td width="120px">商品单价</td>
							  <td width="120px">商品数量</td>
						   </tr>
						   <volist name="goods" id="good" key="key">
						   <tr class="uc_orderdt_cct_tr">
						      <td align="center">{$key} </td>
							  <td align="center" >
							     <a href="{:U("Index/detail",array("id"=>$good['go_id']))}"><img src="{:getalbumface($good['go_pics'])}" width="50px" height="50px" /></a>
							  </td>
							  <td align="center" class="ellipsis colorred" style="width:250px;line-height:100px;">
							     {:getgoName($good['go_id'])}
							  </td>
							  <td align="center">{$good['go_value']}</td>
							  <td align="center">{$good['go_number']}</td>
						   </tr>
						   </volist>
					   </table>
					</div>
                    <div class="uc_orderdt_ccfoot">
					    <div class="uc_orderdt_ccfootr">
						   <div class="uc_orderdt_ccfootrup">
						      <table>
							     <tr>
								    <td align="right">总商品金额：</td>
									<td>&nbsp;&nbsp;¥{$total}</td>
								 </tr>
								 <tr>
								    <td align="right">-返现：</td>
									<td>&nbsp;&nbsp;¥0.00</td>
								 </tr>
								 <tr style=" border-bottom:2px solid #999;">
								    <td align="right">+运费：</td>
									<td>&nbsp;&nbsp;¥0.00</td>
								 </tr>
								 <tr>
								    <td align="right" class="f16 fwb" width="100px">应付金额：</td>
									<td class="colorred2 f20 fwb" width="50px">&nbsp;¥{$total}</td>
								 </tr>
							  </table>
						   
						   </div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	 </div>
</div> 
<script>

$(document).ready(function(){
  $(".print_button").click(function(){
     $(".print_area").printArea();  
  });
});	
	
</script>

</body>
</html>
